package com.pth.admin.action;

import com.opensymphony.xwork2.ActionSupport;
import com.pth.model.UserInfo;
import com.pth.service.UserInfoService;
import com.pth.utils.KaoShengState;

@SuppressWarnings("serial")
public class Change_User_StateAction extends ActionSupport {

	private int id;
	
	private UserInfoService userInfoService;
	
	
	@Override
	public String execute() throws Exception {

		UserInfo userInfo=userInfoService.getUserByuid(id);
		userInfo.setState(KaoShengState.JF_YES);
		userInfoService.modify(userInfo);
		
		return SUCCESS;
	}


	public int getId() {
		return id;
	}


	public void setId(int id) {
		this.id = id;
	}


	public UserInfoService getUserInfoService() {
		return userInfoService;
	}


	public void setUserInfoService(UserInfoService userInfoService) {
		this.userInfoService = userInfoService;
	}
	
	
}
